package com.mic.yzzn.plc.model;

import com.mic.yzzn.plc.common.toolUtils.PLCContactorCode;
import com.mic.yzzn.plc.common.toolUtils.PLCDataCode;

/**
 * Created by ASH on 16/4/18.
 */
public class ContactPointData {

	/** 对应点位 */
	private ContactPoint contactPoint;

	/** 数据的值 */
	private String value;
	
	public ContactPointData(){}

	/**
	 *
	 * @param contactPoint
	 * @param value
	 */
	public ContactPointData(ContactPoint contactPoint, String value) {
		this.contactPoint = contactPoint;
		this.value = value;
	}

	public ContactPointData(String type, String point, String value) {
		this(new ContactPoint(type, point), value);
	}

	@Override
	public String toString() {
		return contactPoint + ": " + value;
	}

	// getters and setters

	public ContactPoint getContactPoint() {
		return contactPoint;
	}

	public void setContactPoint(ContactPoint contactPoint) {
		this.contactPoint = contactPoint;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
